import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from 'axios' //类似引入axios.js文件
Vue.prototype.$axios = axios  //把axios配成全局变量，好处是每个组件都可以使用axios
Vue.use(ElementUI);

Vue.config.productionTip = false
Vue.filter('priceFormat', value => {
  return `￥${Number(value).toFixed(2)}`
})

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
